package model.pojo;

import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Date;

public class HistoryLoginDTO {

	private boolean selected;
	private String logID;
	private String employeeID;
	private String employeeName;
	private String action;
	private Date time;
	private String timeFormat;
	
	public HistoryLoginDTO(){
		
	}
	
	public HistoryLoginDTO(boolean selected,String logID, String employeeID, String employeeName,String action, Date time){
		this.selected = selected;
		this.logID = logID;
		this.employeeID = employeeID;
		this.setEmployeeName(employeeName);
		this.action = action;
		this.time = time;		
		Format format = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss");
		this.timeFormat = format.format(time);
	}
	public HistoryLoginDTO(boolean selected,String logID, String employeeID, String action, Date time){
		this.selected = selected;
		this.logID = logID;
		this.employeeID = employeeID;
		this.action = action;
		this.time = time;		
		Format format = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss");
		this.timeFormat = format.format(time);
	}
	
	public void setLogID(String logID) {
		this.logID = logID;
	}

	public String getLogID() {
		return logID;
	}

	public void setEmployeeID(String employeeID) {
		this.employeeID = employeeID;
	}

	public String getEmployeeID() {
		return employeeID;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getAction() {
		return action;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public Date getTime() {
		return time;
	}

	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}

	public String getEmployeeName() {
		return employeeName;
	}

	public void setTimeFormat(String timeFormat) {
		this.timeFormat = timeFormat;
	}

	public String getTimeFormat() {
		return timeFormat;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	public boolean isSelected() {
		return selected;
	}
}
